import { BaseEntity } from '@cool-midway/core';
import { Entity, Column, Index } from 'typeorm';

/**
 * 用户模块-数据分析
 */
@Entity('user_analysis')
export class UserAnalysisEntity extends BaseEntity {

  @Column({ comment: '指标 id' })
  metric: string;
  
  @Column({ comment: '指标名称' })
  name: string;

  @Column({ comment: '数据时间' })
  timestamp: number;

  @Column({ comment: '数据时间' })
  time_label: Date;

  @Column({ comment: '数据时间',type:"json" })
  group_dimension_list: any[];

  @Column({ comment: '度量值',default:0 })
  metric_value: number;
  
}